package com.rtx.wms.std.asn.bean;

import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.api.annotation.RtxDynamicsClass;
import com.rtx.api.annotation.RtxRequestIgnore;
import com.rtx.api.annotation.RtxSTDRequest;
import com.rtx.wms.std.common.bean.Codelkup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 入库单回传中间表
 * </p>
 *
 * @author zcw
 * @since 2023-04-20
 */
@RtxSTDRequest(name = "入库单回传中间表")
@Data
@TableName("api_receiptfinish")
@ApiModel(value = "ApiReceiptfinish对象", description = "入库单回传中间表")
public class ApiReceiptfinish {

	@ApiModelProperty("主键")
	@TableId(type = IdType.AUTO)
	private Long serialkey;

	private String whseid;
	private String storerkey;
	private String receiptkey;
	private String externreceiptkey;
//	private String externreceiptkey2;
	private LocalDateTime receiptdate;
	private String type;
	private LocalDateTime expectedreceiptdate;
	private String suppliercode;
	private String suppliername;
	private String status;
	private BigDecimal openqty;
	private String shipfromcontact;
	private String shipfromphone;
	private String shipfromstate;
	private String shipfromcity;
	private String shipfromaddressline2;
	private String shipfromaddressline3;
	private String shipfromaddressline1;
	private String logisticscode;
	private String logisticsname;
	private String rtxexpresskey;
	private String notes;
	private String rtxpofromhourse;
	private String carrierreference;

	private String rtxreturnreason;

	private String carrierkey;
	private String carriername;
	private String shipfromzip;
	private String shipfromemail;

	private String rtxqmmethod;
	private String qmcustomerid;
	@ApiModelProperty("回传状态")
	private String ediflag;
	private String rtxqmtype;

	@ApiModelProperty("回传状态")
	private String edimsg;

	@ApiModelProperty("回传次数")
	private Integer rtxqueue;

	@ApiModelProperty("新增用户")
	private String addwho;

	@ApiModelProperty("新增日期")
	private LocalDateTime adddate;

	@ApiModelProperty("修改用户")
	private String editwho;

	@ApiModelProperty("修改日期")
	private LocalDateTime editdate;

	private String batchid;

	private String default01;

	private String default02;

	private String default03;

	private String default04;

	private String default05;

	private String default06;

	private String default07;

	private String default08;

	private String default09;

	private String default10;

	private String rtxbsart;

	@TableField(exist = false)
	private List<ApiReceiptdetailfinish> details;
	
	@RtxRequestIgnore
	@TableField(exist = false)
	private Codelkup rtxshipstoreConfig;
	
    //中研项目新增字段
    private String rtxexternaltype;
    private String rtxpurgroup;
    private String rtxsalegroup;
    private String carriercode;
    private String rtxtotalamount;
    private String rtxfsrcstockid;
    private String rtxdeststockid;
    private String referencedocument;
    private String totalqty;
    private String shipfromcontact2;

}
